package com.wangdao.wechatmall.bean.vo.wx;

import com.wangdao.wechatmall.bean.pojo.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author: JK
 * @Date: create in 2021/7/12 9:51
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class WXGoodsDetailVO {
    private List<SpecificationListDTO> specificationList;
    private List<GrouponRules> groupon;
    private List<Issue> issue;
    private Integer userHasCollect;
    private String shareImage;
    private CommentDTO comment;
    private List<GoodsAttribute> attribute;
    private Brand brand;
    private List<GoodsProduct> productList;
    private Goods info;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class CommentDTO {
        private List<DataDTO> data;
        private Long count;

        @AllArgsConstructor
        @NoArgsConstructor
        @Data
        public static class DataDTO {
            private Date addTime;
            private String[] picList;
            private String nickname;
            private Integer id;
            private String avatar;
            private String content;
        }
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<GoodsSpecification> valueList;
    }
}
